package day13_Io.demo01_file;

import java.io.File;

//获取data目录下所有文件
public class Demo05 {
    public static void main(String[] args) {
        File file = new File("E:\\csw\\Demo\\screo");
    }
    public static void show(File file){
        File[] files = file.listFiles();
        for (File file1 : files) {
            if (file1.isFile()){
                System.out.println(file1.getName());
            }else{}
        }
    }
}
